package com.shenyi.shop.service;

import com.shenyi.shop.api.IFeedbackService;
import com.shenyi.shop.dao.FeedbackMapper;
import com.shenyi.shop.entity.FeedbackDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author richard.fan
 * @version 1.0
 * @date 2018/11/05
 * @desc 反馈
 * @see
 * @since 1.0
 */
@Service
public class FeedbackServiceImpl implements IFeedbackService {


    @Autowired
    private FeedbackMapper feedbackMapper;

    @Override
    public FeedbackDO queryObject(Integer msgId) {
        return feedbackMapper.queryObject(msgId);
    }

    @Override
    public List<FeedbackDO> queryList(Map<String, Object> map) {
        return feedbackMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return feedbackMapper.queryTotal(map);
    }

    @Override
    public int save(FeedbackDO feedback) {
        return feedbackMapper.save(feedback);
    }

    @Override
    public int update(FeedbackDO feedback) {
        return feedbackMapper.update(feedback);
    }

    @Override
    public int delete(Integer msgId) {
        return feedbackMapper.delete(msgId);
    }

    @Override
    public int deleteBatch(Integer[]msgIds) {
        return feedbackMapper.deleteBatch(msgIds);
    }
}
